<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>小草博客</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <!-- <link rel="icon" type="image/png" href="/blog/Public/assets/i/favicon.png"> -->
  <meta name="mobile-web-app-capable" content="yes">
 <!--  <link rel="icon" sizes="192x192" href="/blog/Public/assets/i/app-icon72x72@2x.png"> -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
 <!--  <link rel="apple-touch-icon-precomposed" href="/blog/Public/assets/i/app-icon72x72@2x.png"> -->
  <meta name="msapplication-TileImage" content="/blog/Public/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" type="text/css" href="/blog/Public/assets/css/amazeui.min.css" />
  <link rel="stylesheet" type="text/css" href="/blog/Public/assets/css/app.css" /> 
  <script type="text/javascript" src="/blog/Public/assets/js/jquery.min.js"></script>
</head>
<style type="text/css">
	#playAudio{
		display: none;
			
	}
	#pauseAudio,#playAudio{
	cursor: pointer;
		height:50px;
		line-height:50px;
	}
</style>
<body id="blog" >
<header class="am-topbar">
  <h1 class="am-topbar-brand">
    小草博客欢迎您
  </h1>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse" style="height:50px;line-height:40px;">
    <ul class="am-nav am-nav-pills am-topbar-nav" id="nav">
      <li><a href="<?php echo U('Index/index');?>">首页</a></li>     
      <?php if(is_array($Articletypelist)): $i = 0; $__LIST__ = $Articletypelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""><a href="<?php echo U('Articletype/view',array('articletype_id'=>$vo['articletype_id'],'articletype_name'=>$vo['articletype_name']));?>"><?php echo ($vo["articletype_name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>               
      <li ><a href="<?php echo U('Photo/view');?>">博客相册</a></li>     
     <li onclick="pauseAudio()" id="pauseAudio"><i class="am-icon-pause"></i></li>        
     <li onclick="playAudio()" id="playAudio"><i class="am-icon-play"></i></li>      
    </ul> 
    
    <audio id="myAudio" autoplay loop> 
	  <source src="/blog/Public/assets/i/11.mp3" type="audio/mpeg">	  
	</audio>   
     <form class="am-topbar-form am-topbar-left am-form-inline" method="post" action="<?php echo U('Index/search');?>" >
		     <div class="am-input-group">		      
		      <input type="text" name="search" value="" class="am-form-field "  placeholder="请输入博客标题" required>
		      <span class="am-input-group-btn">
		        <button class="am-btn am-btn-default" type="submit"><span class="am-icon-search"></span></button>
		      </span>
		    </div>
    </form>      
   <div class="am-topbar-right">
   <?php if(empty($_SESSION['review_author'])): ?><a href="<?php echo U('Review/reg');?>">
      <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm">注册</button>
   </a>
    </div>
    <div class="am-topbar-right">
    <a href="<?php echo U('Review/login');?>">
      <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm">登录</button>
    </a>
    <?php else: ?>
     <a href="<?php echo U('Review/logout');?>">
      <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm">
             注销
      </button>
      </a>
    </div>
    <div class="am-topbar-right">
     <a href="<?php echo U('Review/login');?>">
    <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm">
     <span class="glyphicon glyphicon-user"> 欢迎您：<?php echo (session('review_author')); ?></span>
    </button>
     
    </a><?php endif; ?>
    </div>
  </div>
</header>

<script type="text/javascript">
		var obj=null;
		var As=document.getElementById('nav').getElementsByTagName('a');
		obj = As[0];
		for(i=1;i<As.length;i++){
			if(window.location.href.indexOf(As[i].href)>=0)
		obj=As[i];
			}
		obj.id='nav_current';
		
		var x = document.getElementById("myAudio"); 
		function pauseAudio()
		{    
			  x.pause();	 
			 $("#pauseAudio").css('display','none');
			 $("#playAudio").css('display','block');
		} 
		function playAudio(){
			 x.play();
		     $("#pauseAudio").css('display','block');
			 $("#playAudio").css('display','none');
		}
		
		
</script>

  
<link rel="stylesheet" type="text/css" href="/blog/Public/assets/css/tp.css" />

<div class="am-g">

<ul data-am-widget="gallery" class="am-gallery am-avg-sm-1 am-avg-md-2 am-avg-lg-4 am-gallery-imgbordered" data-am-gallery="{pureview: 1}">
 <?php if(is_array($photoinfo)): $i = 0; $__LIST__ = $photoinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
    <div class="am-gallery-item">
      <img src="/blog/<?php echo ($vo["photo_camera"]); ?>"/>          
    </div>
   <section class="phtotinfo">
    <div class="am-gallery-desc">
      <i class="am-icon-clock-o"></i> <?php echo ($vo["photo_time"]); ?>
      <span class="am-fr"><i class="am-icon-paper-plane"></i> <?php echo ($vo["photo_addr"]); ?></span>
      </div>
     <h3 class="am-gallery-titlea am-kai">相册说明：</h3> 
     <h3 class="am-gallery-titlea am-kai"><?php echo (htmlspecialchars_decode($vo["photo_info"])); ?></h3>       
   </section>
  </li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
<div class="am-g am-text-center">
<?php echo ($page); ?>
</div>
 
  
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed" >
    <a href="#top" title="">
        <img class="am-gotop-icon-custom" src="http://amazeui.b0.upaiyun.com/assets/i/cpts/gotop/goTop.gif" />
    </a>
  </div>

  <footer class="blog-footer">
    <div class="am-g am-g-fixed blog-fixed am-u-sm-centered blog-footer-padding">
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
            <h3>我想说</h3>
            <p class="am-text-sm">
		                 每个人都有一个死角， 自己走不出来，别人也闯不进去。
		               我把最深沉的秘密放在那里。
		                你不懂我，我不怪你。
		               每个人都有一道伤口， 或深或浅，盖上布，以为不存在。
            </p>
        </div>
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
            <h3>联系小草儿</h3>
            <p>
                <span class="am-icon-weixin am-icon-fw am-primary"></span> 1216941756<br/>                
                <span class="am-icon-weibo am-icon-fw "></span>  1216941756@qq.com<br/>                         
                                          小草儿追求卓越，然时间、经验、能力有限小草儿 有很多不足的地方，希望大家包容、不吝赐教，给我们提意见、建议。感谢你们！
           </p>          
        </div>
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
              <h1>小草儿特长</h1>
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">jQuery</button>
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">javascript</button>	
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">css</button>
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">css3</button>	
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">H5</button>	
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">php</button>	
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">ps</button>
              <button type="button" class="am-btn am-btn-default" style="margin:5px;">cdr</button>		 	
        </div>
    </div>    
     
  </footer>


<!--[if (gte IE 9)|!(IE)]><!-->
<script type="text/javascript" src="/blog/Public/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/blog/Public/assets/js/amazeui.min.js"></script>
</body>
</html>